package homework13;

import org.apache.commons.io.IOUtils;

import java.io.FileInputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class home03 {
    public static void main(String[] args) throws IOException {
        FileInputStream is=new FileInputStream("决策引擎Java-data.txt");
        String result = IOUtils.toString(is, String.valueOf(StandardCharsets.UTF_8));
        String[] result1=result.split("：");
        System.out.println("小时：");
        String result2=result1[1].replace("30分钟","");
        System.out.println(result2);
        System.out.println("30分钟：");
        String result3=result1[2].replace("15分钟","");
        System.out.println(result3);
        System.out.println("15分钟:");
        System.out.println(result1[3]);
    }
}
